package com.jeesite.modules.kj.api.vo.response;

import com.jeesite.modules.kj.api.vo.responseVo.base.BaseResponseVo;
import com.jeesite.modules.kj.entity.KjBadge;
import com.jeesite.modules.kj.entity.KjMemberBadge;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.beans.BeanUtils;

import java.util.Date;

@Data
public class BadgeResponseVo extends BaseResponseVo<KjBadge> {
    @ApiModelProperty(value = "徽章ID")
    private String id;
    @ApiModelProperty(value = "徽章名")
    private String name;
    @ApiModelProperty(value = "徽章图")
    private String img;
    @ApiModelProperty(value = "已获得时徽章图")
    private String gainImg;
    @ApiModelProperty(value = "徽章介绍")
    private String description;


    public BadgeResponseVo() {
    }

    @Override
    public void setEntity(KjBadge entity) {
        BeanUtils.copyProperties(entity, this);
    }

    public BadgeResponseVo(KjBadge entity) {
        setEntity(entity);
    }
}
